package com.example.lvsuo.service.cxg.impl;

import com.example.lvsuo.entity.cxg.vo.FlowNodeVo;
import com.example.lvsuo.service.cxg.IFlowNodeService;
import com.example.lvsuo.entity.cxg.FlowNode;
import com.example.lvsuo.mapper.cxg.FlowNodeMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 心心念念
 * @since 2021-03-30
 *
 * 流程审批人 Service
 *
 */
@Service
@Transactional
public class FlowNodeServiceImpl extends ServiceImpl<FlowNodeMapper, FlowNode> implements IFlowNodeService {

    @Autowired
    FlowNodeMapper flowNodeMapper;


    /**
     * 查询流程审批人
     * @return
     */
    @Override
    public List<FlowNodeVo> queryFlowNode(FlowNodeVo flowNodeVo) {
        return flowNodeMapper.queryFlowNode(flowNodeVo);
    }

    /**
     * 添加流程审批人
     * @param flowNode
     * @return
     */
    @Override
    public void addFlowNode(FlowNode flowNode) {
         flowNodeMapper.addFlowNode(flowNode);
    }

    @Override
    public void delFlowNode(String id) {
         flowNodeMapper.delFlowNode(id);
    }

    @Override
    public void updateFlowNode(FlowNode flowNode) {
        flowNodeMapper.updateFlowNode(flowNode);
    }

    @Override
    public FlowNode queryByid(FlowNode flowNode) {
        return flowNodeMapper.queryByid(flowNode);
    }

}
